package com.neusoft.neuiotms.dcom.task.hn;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class HnInspectionTaskJob extends QuartzJobBean {
    @Autowired
    private HnInspectionTaskGenService hnInspectionTaskGenService;

    @Override
    protected void executeInternal(final JobExecutionContext context) throws JobExecutionException {
        final Long inspecitonRuleId = context.getJobDetail().getJobDataMap().getLong("hnInspectionRuleId");
        this.hnInspectionTaskGenService.executeInternal(inspecitonRuleId);

    }
}
